﻿using FreeSql.DatabaseModel;using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Threading.Tasks;
using Newtonsoft.Json;
using FreeSql.DataAnnotations;

namespace ConsoleApp1.Models.DB {

	[JsonObject(MemberSerialization.OptIn), Table(Name = "t_Offset", DisableSyncStructure = true)]
	public partial class TOffset {

		[JsonProperty, Column(IsPrimary = true, IsIdentity = true)]
		public long Id { get; set; }

		[JsonProperty, Column(Name = "bufferTensileDisplaceL", DbType = "decimal(18,2)")]
		public decimal? BufferTensileDisplaceL { get; set; }

		[JsonProperty, Column(Name = "bufferTensileDisplaceR", DbType = "decimal(18,2)")]
		public decimal? BufferTensileDisplaceR { get; set; }

		[JsonProperty]
		public DateTime? CreateTime { get; set; }

		[JsonProperty, Column(Name = "deviceId")]
		public long? DeviceId { get; set; }

		/// <summary>
		/// 输入电压
		/// </summary>
		[JsonProperty, Column(Name = "inputVoltage", DbType = "decimal(18,2)")]
		public decimal? InputVoltage { get; set; }

		[JsonProperty, Column(Name = "laserDisplaceL")]
		public int? LaserDisplaceL { get; set; }

		[JsonProperty, Column(Name = "laserDisplaceR")]
		public int? LaserDisplaceR { get; set; }

		[JsonProperty, Column(Name = "railTensileDisplaceL", DbType = "decimal(18,2)")]
		public decimal? RailTensileDisplaceL { get; set; }

		[JsonProperty, Column(Name = "railTensileDisplaceR", DbType = "decimal(18,2)")]
		public decimal? RailTensileDisplaceR { get; set; }

		[JsonProperty, Column(StringLength = -2)]
		public string TerminalId { get; set; }

		[JsonProperty]
		public DateTime? Time { get; set; }

		[JsonProperty, Column(DbType = "decimal(18,2)")]
		public decimal? XRollAngle { get; set; }

		[JsonProperty, Column(DbType = "decimal(18,2)")]
		public decimal? YElevationAngle { get; set; }

		[JsonProperty, Column(DbType = "decimal(18,2)")]
		public decimal? ZYawAngle { get; set; }

	}

}
